package Model.xml.protocols;

/**
 *
 * @author pieterc
 */
public interface Protocol {
    public final static int READONLY = 0, READWRITE = 1;
    //supported authentication methods
    public final static int BASIC_AUTH = 0, OAUTH = 1;

    public int getAuthenticationMethod();
    public void authenticate();
    public String getApiURL();
    public String getApiName();
    public int getAccess();
    public void postStatus(String message);

    public ProtocolXML getXMLHandler();
    public void loadStandardTimeline();

    public void setCredentials(Object ... o);

    public Object getInfo();

}
